//
//  Common.swift
//  weiboD
//
//  Created by gao2015 on 2016/12/5.
//  Copyright © 2016年 gao2015. All rights reserved.
//

import UIKit

let SwitchRootViewControllerName = "SwitchRootViewControllerName"

//let margin

func randomColor() ->UIColor{
//    arc4random比random精度高
    //red,blue,green的取值范围是0到255
    let red = arc4random() % 256
    let green = arc4random() % 256
    let blue = arc4random() % 256
//    CGFloat(red) / 255,放数字可以自动推断，但是放一个变量不行
    return UIColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue:CGFloat(blue) / 255 , alpha: 1)



}
